Part Number Hot Search : 
WR300 B41792A7 2SC43 KT830W55 SG352 LC78645 FM240 MS320
Product Description
Full Text Search
 

To Download CS8411-IS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 copyright ? cirrus logic, inc. 1998 (all rights reserved) cirrus logic, inc. crystal semiconductor products division p.o. box 17847, austin, texas 78760 (512) 445 7222 fax: (512) 445 7581 http://www.crystal.com cs8411 cs8412 digital audio interface receiver features l monolith i c c mos rece i ver l low-jitter, on-chip clock recovery 256x fs output clock p r ovided l supports: aes/ebu , iec958 , s/pdif, & e iaj c p -340 professional and consumer formats l extens i ve error reporting - repe a t last sample o n error option l on-chip r s 422 line receiver l co n fig u rabl e b u ffer m e m o ry (c s 84 1 1) description the cs84 1 1/ 1 2 are m o nolit h ic cmos d e vices w h ich re- c e ive a nd d ec o de a udio d ata a ccording t o the a e s / e b u, iec95 8 , s / pdif , & eiaj cp-34 0 in t erface stan d ards. the c s8 4 11/ 1 2 receive data from a transmission lin e , recov e r the cl o ck a n d synchronizatio n sign a ls, a n d de- m u ltipl e x t he a u dio and di g it a l d a ta. d iff e r e ntial o r single en d e d in p uts can b e d e c o de d . the cs84 1 1 has a configur a ble int e r n al b uff e r m e mory, read vi a a parall e l port , which m a y be used t o b u ffer c h an n el st a tus, a uxiliary da t a, a nd/ o r u s e r dat a . the c s8 4 12 d e-multipl e x e s t h e cha n nel, user, a nd va- lidity d a ta dir e ctly to seri a l out p ut pins with de d icat e d ou t pu t pi n s f or the most im p ortant c h an n e l st a tus bits. orde r ing information s e e p a g e 3 2. i sck 12 fsync 11 sd a t a 26 rxp 9 rxn 10 audio serial port cs 24 r d /wr 23 a3-a0 4 d7 - d0 8 c o n f i g u r a b le bu f fer memory mck 19 d e - m ux r s422 receiv e r cs8411 ienable and status erf int 25 14 c lock and d ata r ec o very agnd 21 fi l t 20 v a + 22 dgnd 8 vd+ 7 sck 12 fsync 11 sd a t a 26 rxp 9 rxn 10 audio serial port 14 28 registers mck 19 d e - m ux r s422 rece i ver cs8412 m u x 2 2 7 c lock and d ata r ec o very agnd 21 fi l t 20 v a + 22 dgnd 8 vd+ 7 1 c u verf m3 17 m2 18 m1 24 m0 23 m u x erf 25 cbl 15 43 65 ce / c d / c c / cb / ca / c0 / f 2 f 1 f 0 e 2 e 1 e0 16 sel 13 cs1 2 / f c k 13 a 4 /fck oct 98 d s 6 1f1
cs8411 cs8412 2 ds61f1 table of contents characteristics/specifications ............................................................ 3 absolute maximum ratings .............................................................. 3 recommended operating conditions .......................................... 3 digital characteristics.................................................................... 3 digital characteristics - rs422 receivers................................ 4 switching characteristics - cs8411 parallel port............... 4 switching characteristics - serial ports................................ 5 general description .................................................................................. 7 line receiver .............................................................................................. 7 clocks and jitter attenuation ...................................................................... 7 cs8411 description ....................................................................................... 8 parallel port ................................................................................................ 8 status and ienable registers ..................................................................... 8 control registers ...................................................................................... 11 audio serial port ....................................................................................... 13 normal modes .................................................................................... 14 special modes .................................................................................... 14 buffer memory .......................................................................................... 15 buffer mode 0 ..................................................................................... 15 buffer mode 1 ..................................................................................... 16 buffer mode 2 ..................................................................................... 18 buffer updates and interrupt timing ......................................................... 19 erf pin timing ......................................................................................... 19 pin descriptions: cs8411 .......................................................................... 20 cs8412 description ..................................................................................... 23 audio serial port ....................................................................................... 23 normal modes (m3 = 0) ..................................................................... 23 special modes (m3 = 1) ..................................................................... 24 c, u, verf, erf, and cbl serial outputs .............................................. 26 multifunction pins ...................................................................................... 26 channel status reporting .................................................................. 27 professional channel status (c0 = 0) ................................................ 28 consumer channel status (c0 = 1) ................................................... 28 scms ................................................................................................. 28 pin descriptions: cs8412 .......................................................................... 29 ordering guide ............................................................................................ 32 package dimensions .................................................................................. 33 appe2ndix a: rs422 receiver information ........................................ 35 professional interface ............................................................................... 35 consumer interface .................................................................................. 36 ttl/cmos levels .................................................................................... 36 transformers ............................................................................................ 36 appendix b ..................................................................................................... 37 preliminary product information describes products which are in production, but for which full characterization data is not yet available. advance product information describes products which are in development and subject to development changes. cirrus logic, inc. has mad e best efforts to ensure that the information contained in this document is accurate and reliable. however, the information is subject to cha nge without notice and is provided as is without warranty of any kind (express or implied). no responsibility is assumed by cirrus logic, inc. for the use of this information, nor for infringements of patents or other rights of third parties. this document is the property of cirrus logic, inc. and implies no license under patents, copyrights, trademarks, or trade secrets. no part of this publication may be copied, reproduced, stored in a retrieval sys- tem, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise). furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of cirrus logic, inc. the names of products of cirrus logic, inc. or other vendors and suppliers appearing in this document may be trademarks or service marks of their respec tive owners which may be registered in some jurisdictions. a list of cirrus logic, inc. trademarks and service marks can be found at http: //www.cirrus.com.
cs8411 cs8412 ds61f1 3 characteristics/specifications absolute maximum ratings (gnd = 0v, all voltages with respect to ground) notes: 1. transient currents of up to 100 ma will not cause scr latch-up. warning: operation beyond these limits may result in permanent damage to the device. normal operation is not guaranteed at these extremes. recommended operating conditions (gnd = 0v; all voltages with respect to ground) notes: 2. the '-cp' and '-cs' parts are specified to operate over 0 to 70 c but are tested at 25 c only. the '-ip' and '-is' parts are tested over the full -40 to 85 c temperature range. digital characteristics (t a = 25 c for suffixes '-cp' & '-cs', t a = -40 to 85 c for '-ip' & '-is'; vd+, va+ = 5v 10%) 3. f s is defined as the incoming audio sample frequency per channel. parameter symbol min max units power supply voltage vd+, va+ 6.0 v input current, any pin except supply note 1 i in 10 ma input voltage, any pin except rxp, rxn v in -0.3 vd+ + 0.3 v input voltage, rxp and rxn v in -12 12 v ambient operating temperature (power applied) t a -55 125 c storage temperature t stg -65 150 c parameter symbol min typ max unit power supply voltage vd+, va+ 4.5 5.0 5.5 v supply current va+ vd+ i a i d 20 20 30 30 ma ma ambient operating temperature: cs8411/12-cp or -cs cs8411/12-ip or -is note 2 t a 0 -40 25 70 85 c c power consumption p d 135 248 mw parameter symbol min typ max unit high-level input voltage except rxp, rxn v ih 2.4 v low-level input voltage except rxp, rxn v il 0.4 v high-level output voltage (io = 200 a) v oh vd+ - 1.0 v low-level output voltage (io = -3.2 ma) v ol 0.5 v input leakage current i in 1.0 10 a input sample frequency cs8411/12-cp or -cs cs8411/12-ip or -is note 3 f s f s 25 30 55 50 khz khz master clock frequency note 3 mck 6.4 256 x f s 14.08 mhz mck clock jitter t j 200 ps rms mck duty cycle (high time/cycle time) 50 %
cs8411 cs8412 4 ds61f1 digital characteristics - rs422 receivers (rxp, rxn pins only; vd+ = 5v 10%) notes: 4. vcm - input common mode range 5. when the receiver inputs are configured for singe ended operation (e.g. consumer configuration) the signal amplitude must exceed 400m vp-p for the differential voltage on rxp to rxn to exceed 200mv. this represents twice the minimum signal level of 200 mvp-p specified in cp340/1201 and iec-958 (which are not rs-422 compliant). switching characteristics - cs8411 parallel port (t a = 25 c for suf- fixes '-cp' and '-cs'; t a = -40 to 85 c for suffixes '-ip' and '-is'; vd+, va+ = 5v 10%; inputs: logic 0 = dgnd, logic 1 = vd+; cl = 20 pf) parameter symbol min typ max unit input resistance (-7v < vcm < 7v) note 4 z in 10 k w differential input voltage, rxp to rxn (-7v < vcm < 7v) note 4,5 vth 200 mv input hysteresis vhyst 50 mv parameter symbol min typ max unit address valid to cs low t adcss 13.5 ns cs high to address invalid t csadh 0ns rd/wr valid to cs low t rwcss 10 ns cs low to rd/wr invalid t csrwi 35 ns cs low t csl 35 ns data valid to cs rising rd/wr low (writing) t dcssw 32 ns cs high to data invalid rd/wr low (writing) t csdhw 0ns cs falling to data valid rd/wr high (reading) t csddr 35 ns cs rising to data hi-z rd/wr high (reading) t csdhr 5ns a4 - a0 d7 - d0 rd/wr writing reading adcss t csddr t csl t dcssw t csdhw t csdhr t csadh t cs d7 - d0 rd/wr csrwi t rwcss t cs8411 parallel port timing
cs8411 cs8412 ds61f1 5 switching characteristics - serial ports (t a = 25 c for suffixes '-cp' and '-cs'; t a = -40 to 85 c for suffixes '-ip' and '-is'; vd+, va+ = 5v 10%; inputs: logic 0 = dgnd, logic 1 = vd+; cl = 20 pf) 6. the output word rate, owr, refers to the frequency at which an audio sample is output from the part. (a stereo pair is two audio samples.) therefore, in master mode, there are always 32 sck periods in one audio sample. in slave mode, exactly 32 sck periods per audio sample must be provided in most serial port formats. therefor, if sck is 128 x fs, then sck must be gated to provide exactly 32 periods per audio sample. 7. in master mode sck and fsync are outputs. in slave mode they are inputs. in the cs8411, control reg. 2 bit 1, mstr, selects master. in the cs8412, formats 1, 3 and 9 are slaves. 8. the table above assumes data is output on the falling edge and latched on the rising edge. with the cs8411 the edge is selectable. the table is defined for the cs8411 with control reg. 2 bit 0, sced, set to one, and for the cs8412 in formats 2, 3, 5, 6 and 7. for the other formats, the table and figure edges must be reversed (i.e.. "rising" to "falling" and vice versa). parameter symbol min typ max unit sck frequency master mode notes 6, 7 slave mode note 7 f sck owrx32 owrx32 128xfs hz hz sck falling to fsync delay master mode notes 7, 8 t sfdm -20 20 ns sck pulse width low slave mode note 7 t sckl 40 ns sck pulse width high slave mode note 7 t sckh 40 ns sck rising to fsync edge delay slave mode notes 7,8 t sfds 20 ns fsync edge to sck rising setup slave mode notes 7,8 t fss 20 ns sck falling (rising) to sdata valid note 8 t ssv 20 ns c, u, cbl valid to fsync edge cs8412 note 8 t cuvf 1/f sck s mck to fsync edge delay fsync from rxn/rxp t mfd 15 ns sfds t ssv t sdata sck fsync fss t msb sckh t ssv t sckl t sdata sck fsync msb (mode 1) (mode 3) sfdm t ssv t cuvf t sdata sck fsync c, u serial output timing - slave mode serial output timing - master mode & c, u port fsync generated from received data fsync mfd t mck fss t sfds t sckh t sckl t sck (modes 2,3,5,6, 7,10,12, and 13) (modes 0,1,4, 8,9, and 11)
cs8411 cs8412 6 ds61f1 audio data processor or micro- controller cs8411 vd+ 21 +5v digital 7 dgnd 8 rxp rxn 11 fsync sck sdata 12 26 0.1 m f 24 23 mck 14 int a0 - a4 d0 - d7 19 cs rd/wr erf 25 audio data processor va+ +5v analog 22 0.1 m f agnd 9 10 filt 0.047 m f 20 receiver circuit (see appendix a) 1 k w 5 k w figure 1. cs8411 typical connection diagram or micro- controller cs8412 vd+ 21 +5v digital 7 dgnd 8 rxp rxn 11 fsync sck sdata 12 26 0.1 m f 1 14 mck cbl 19 c u verf 28 audio data processor va+ +5v analog 22 0.1 m f agnd 9 10 filt 20 receiver circuit (see appendix a) logic 15 cs12/fck 13 sel 16 erf 25 6 c / e-f bits channel status and/or error/frequency reporting 0.047 m f 1 k w figure 2. cs8412 typical connection diagram
cs8411 cs8412 ds61f1 7 general description the cs8411/12 are monolithic cmos circuits that receive and decode audio and digital data accord- ing to the aes/ebu, iec958, s/pdif, and eiaj cp-340 interface standards. both chips contain rs422 line receivers and phase-locked loops (pll) that recover the clock and synchronization signals, and de-multiplex the audio and digital data. the cs8411 contains a configurable internal buffer memory, read via a parallel port, which can buffer channel status, user, and optionally auxiliary data. the cs8412 de-multiplexes the channel status, us- er, and validity information directly to serial output pins with dedicated pins for the most important channel status bits. both chips also contain exten- sive error reporting as well as incoming sample fre- quency indication for auto-set applications. familiarity with the aes/ebu and iec958 speci- fications are assumed throughout this document. the app note, overview of digital audio inter- face data structures, contains information on digi- tal audio specifications; however, it is not meant to be a complete reference. to guarantee compliance, the proper standards documents should be ob- tained. the aes/ebu standard, aes3-1985, should be obtained from the audio engineering society or ansi (ansi document # ansi s4.40- 1985); the iec958 standard from the international electrotechnical commission; and the eiaj cp- 340 standard from the japanese electronics bu- reau. line receiver the rs422 line receiver can decode differential as well as single ended inputs. the receiver consists of a differential input schmitt trigger with 50 mv of hysteresis. the hysteresis prevents noisy signals from corrupting the phase detector. appendix a contains more information on how to configure the line receivers for differential and single ended sig- nals. clocks and jitter attenuation the primary function of these chips is to recover audio data and low jitter clocks from a digital audio transmission line. the clocks that can be generated are mck (256 fs), sck (64 fs), and fsync (fs or 2 fs). mck is the output of the voltage controlled oscillator which is a component of the pll. the pll consists of phase and frequency de- tectors, a second-order loop filter, and a voltage controlled oscillator. all components of the pll are on chip with the exception of a resistor and ca- pacitor used in the loop filter. this filter is connect- ed between the filt pin and agnd. the closed- loop transfer function, which specifies the pll's jitter attenuation characteristics, is shown in figure 3. since most data jitter introduced by the transmis- sion line is high in frequency, it will be strongly at- tenuated. multiple frequency detectors are used to minimize the time it takes the pll to lock to the incoming data stream and to prevent false lock conditions. when the pll is not locked to the incoming data stream, the frequency detectors pull the vco fre- quency within the lock range of the pll. when no digital audio data is present, the vco frequency is pulled to its minimum value. as a master, sck is always mck divided by four, producing a frequency of 64 fs. in the cs8411, fsync can be programmed to be a divided version of mck or it can be generated directly from the in- coming data stream. in the cs8412, fsync is al- ways generated from the incoming data stream. when fsync is generated from the data, its edges are extracted at times when intersymbol interfer- ence is at a minimum. this provides a sample fre- quency clock that is as spectrally pure as the digital audio source clock for moderate length transmis- sion lines. for long transmission lines, the cs8411 can be programmed to generate fsync from mck instead of from the incoming data.
cs8411 cs8412 8 ds61f1 cs8411 description the cs8411 is more flexible than the cs8412 but requires a microcontroller or dsp to load internal registers. the cs8412 does not have internal regis- ters so it may be used in a stand-alone mode where no microprocessor or dsp is available. the cs8411 accepts data from a transmission line coded according to the digital audio interface stan- dards. the i.c. recovers clock and data, and sepa- rates the audio data from control information. the audio data is output through a configurable serial port and the control information is stored in internal dual-port ram. extensive error reporting is avail- able via internal registers with the option of repeat- ing the last sample when an error occurs. a block diagram of the cs8411 is shown in figure 4. parallel port the parallel port accesses two status registers, two interrupt enable registers, two control registers, and 28 bytes of dual-port buffer memory. the status registers and interrupt enable registers occupy the same address space. a bit in control register 1 se- lects the two registers, either status or interrupt en- able, that occupy addresses 0 and 1 in the memory map. the address bus and the rd/wr line should be valid when cs goes low. if rd/wr is low, the value on the data bus will be written into the buffer memory at the specified address. if rd/wr is high, the value in the buffer memory, at the specified ad- dress, is placed on the data bus. detailed timing for the parallel port can be found in the switching characteristics - parallel port table. the memory space on the cs8411 is allocated as shown in figure 5. there are three defined buffer modes selectable by two bits in control register 1. further information on the buffer modes can be found in the control registers section. status and ienable registers the status and interrupt enable registers occupy the same address space. the ier/sr bit in control reg- ister 1 selects whether the status registers (ier/sr = 0) or the ienable registers (ier/sr = 1) occupy addresses 0 and 1. upon power-up, the control and ienable registers contain all zeros; therefore, the 10 2 10 3 10 4 10 5 10 6 5 0 - 5 - 10 - 15 - 20 - 25 - 30 jitter frequency (hz) jitter attenuation (db) figure 3. jitter attenuator characteristics
cs8411 cs8412 ds61f1 9 status registers are visible and all interrupts are dis- abled. the ier/sr bit must be set to make the ien- able registers visible. status register 1 (sr1), shown in figure 6, reports all the conditions that can generate a low pulse, four sclk cycles wide, on the interrupt pin (int). the three least significant bits, flag2-flag0, are used to monitor the ram buffer. these bits con- tinually change and indicate the position of the buffer pointer which points to the buffer memory location currently being written. each flag has a corresponding interrupt enable bit in ienable regis- ter 1 which, when set, allows a transition on the flag to generate a pulse on the interrupt pin. flag0 and flag1 cause interrupts on both edges whereas flag2 causes an interrupt on the rising edge only. further information, including timing, on the flags can be found in the buffer memory section. the next five bits; erf, slip, cchg, crce/crc1, and csdif/crc2, are latches which are set when their corresponding conditions occur, and are reset when sr1 is read. interrupt pulses are generated the first time that condition oc- curs. if the status register is not read, further in- stances of that same condition will not generate another interrupt. erf is the error flag bit and is set when the erf pin goes high. it is an or'ing of the errors listed in status register 2, bits 0 through 4, and'ed with their associated interrupt enable bits in ienable register 2. a4/ 13 va+ filt agnd mck 19 21 22 20 9 10 sdata 23 24 fck a0- a3 d0- d7 48 11 sck fsync 12 26 cs rd/wr 4 x 8 25 erf 14 int buffer memory 28 x 8 control registers 2 x 8 de-multiplexor audio serial port c.s. user aux crc check no lock bi-phase parity validity crc slipped rxp rxn 7 8 vd+ dgnd clock & data recovery bi-phase decoder frequency comparator ienable & status figure 4. cs8411 block diagram
cs8411 cs8412 10 ds61f1 slip is only valid when the audio port is in slave mode (fsync and sck are inputs to the cs8411). this flag is set when an audio sample is dropped or reread because the audio data output from the part is at a different frequency than the data received from the transmission line. cchg is set when any bit in channel status bytes 0 through 3, stored in the buffer, changes from one block to the next. in buff- er modes 0 and 1, only one channel of channel sta- tus data is buffered, so cchg is only affected by that channel. (cs2/cs1 in cr1 selects which chan- nel is buffered.) in buffer mode 2 both channels are buffered, so both channels affect cchg. this bit is updated after each byte (0 to 3) is written to the buffer. the two most significant bits in sr1, crce/crc1 and csdif/crc2, are dual function flags. in buffer modes 0 and 1, they are crce and csdif, and in buffer mode 2, they are crc1 and crc2. in buffer modes 0 and 1, the channel select- ed by the cs2/cs1 bit is stored in ram and crce indicates that a crc error occurred in that channel. csdif is set if there is any difference between the channel status bits of each channel. in buffer mode 2 channel status from both channels is buffered, with crc1 indicating a crc error in channel 1 and crc2 indicating a crc error in channel 2. crce, crc1, and crc2 are updated at the block bound- ary. block boundary violations also cause crc1,2 or crce to be set. ienable register 1, which occupies the same ad- dress space as status register 1, contains interrupt enable bits for all conditions in status register 1. a "1" in a bit location enables the same bit location in status register 1 to generate an interrupt pulse. a "0" masks that particular status bit from causing an interrupt. status register 2 (sr2) reports all the conditions that can affect the error flag bit in sr1 and the error pin (erf), and can specify the received clock fre- quency. as previously mentioned, the first five bits of sr2 are and'ed with their interrupt enable bits (in ier2) and then or'ed to create erf. the v, 01 2 3 user data 1st four bytes of c. s. data 1st four bytes of c. s. data 1st four bytes of left c. s. data auxiliary data last 20 bytes channel status data status 1 / ienable 1 c. s. data left c. s. data right c. s. data 1st four bytes of right c. s. data u n d e f i n e d a d d r e s s memory mode 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f control register 1 control register 2 status 2 / ienable 2 figure 5. cs8411 buffer memory map figure 6. status/ienable register 1 sr1: csdif: cs different between sub-frames. buffer modes 0 & 1 crc2: crc error - sub-frame 2. buffer mode 2 only. crce: crc error - selected sub-frame. buffer modes 0 & 1 crc1: crc error - sub-frame 1. buffer mode 2 only. cchg: channel status changed slip: slipped an audio sample erf: error flag. oring of all errors in sr2. flag2: high for first four bytes of channel status flag1: memory mode dependent - see figure . flag0: high for last two bytes of user data. ier1: enables the corresponding bit in sr1. a 1 enables the interrupt. a 0 masks the interrupt. x:00 7 6 5 4 3 2 1 0 sr1. csdif/ crc2 crce/ crc1 cchg slip erf flag2 flag1 flag0 ier1. interrupt enable bits for above sr1: csdif: cs different between sub-frames. buffer modes 0 & 1 crc2: crc error - sub-frame 2. buffer mode 2 only. crce: crc error - selected sub-frame. buffer modes 0 & 1 crc1: crc error - sub-frame 1. buffer mode 2 only. cchg: channel status changed slip: slipped an audio sample erf: error flag. oring of all errors in sr2. flag2: high for first four bytes of channel status flag1: memory mode dependent - see figure 11 flag0: high for last two bytes of user data. ier1: enables the corresponding bit in sr1. a 1 enables the interrupt. a 0 masks the interrupt. x:00 7 6 5 4 3 2 1 0 sr1. csdif/ crc2 crce/ crc1 cchg slip erf flag2 flag1 flag0 ier1. interrupt enable bits for above
cs8411 cs8412 ds61f1 11 parity, code and lock bits are latches which are set when their corresponding conditions occur, and are reset when sr2 is read. the erf pin is as- serted each time the error occurs assuming the in- terrupt enable bit in ier2 is set for that particular error. when the erf pin is asserted, the erf bit in sr1 is set. if the erf bit was not set prior to the erf pin assertion, an interrupt will be generated (assuming bit 3 in ier1 is set). although the erf pin is asserted for each occurrence of an enabled er- ror condition, the erf bit will only cause an inter- rupt once if sr1 is not read. v is the validity status bit which is set any time the received validity bit is high. parity is set when a parity error is detected. code is set when a bi- phase coding error is detected. lock is asserted when the receiver pll is not locked and occurs when there is no input on rxp/rxn, or if the re- ceived frequency is out of the receiver lock range (25 khz to 55 khz). lock is achieved after receiv- ing three frame preambles followed by one block preamble, and is lost after four consecutive frame preambles are not received. the upper three bits in sr2, freq2-freq0, can report the receiver frequency when the receiver is locked. these bits are only valid when fcen in control register 1 is set, and a 6.144 mhz clock is applied to the fck pin. when fcen is set, the a4/fck pin is used as fck and a4 is internally set to zero; therefore, only the lower half of the buffer can be accessed. table 1 lists the frequency ranges reported. the freq bits are updated three times per block and the clock on the fck pin must be val- id for two thirds of a block for the freq bits to be accurate. the vast majority of audio systems must meet the 400 ppm tolerance listed in the table. the 4% tolerance is provided for unique situations where the approximate frequency needs to be known, even though that frequency is outside the normal audio specifications. table 1. incoming sample frequency bits ienable register 2 has corresponding interrupt en- able bits for the first five bits in sr2. a "1" enables the condition in sr2 to cause erf to go high, while a "0" masks that condition. bit 5 is unused and bits6 and 7, the two most significant bits, are factory test bits and must be set to zero when writing to this register. the cs8411 sets these bits to zero on pow- er-up. control registers the cs8411 contains two control registers. control register1 (cr1), at address 2, selects system level features, while control register 2 (cr2), at address 3, configures the audio serial port. in control register 1, when rst is low, all outputs are reset except mck (fsync and sclk are high impedance). after the user sets rst high, the cs8411 comes fully out of reset when the block boundary is found. it is recommended to reset the cs8411 after power-up and any time the user per- forms a system-wide reset. the serial port, in mas- ter mode, will begin to operate as soon as rst goes figure 7. status/ienable register 2 sr2: freq2: the 3 freq bits indicate incoming sample frequency. freq1: (must have 6.144 mhz clock on fck pin and fcen freq0: must be 1) lock: out-of-lock error code: coding violation parity: parity error v: validity bit high ier2: test1,0: (0 on power-up) must stay at 0. int. enables: enables the corresponding bit in sr2. a 1 enables the interrupt. a 0 masks the interrupt. x:01765 4 3210 sr2. freq2 freq1 freq0 reserved lock code parity v ier2. test1 test0 int. enable bits for above freq2 freq1 freq0 sample frequency 0 0 0 out of range 001 48 khz 4% 0 1 0 44.1 khz 4% 0 1 1 32 khz 4% 1 0 0 48 khz 400 ppm 1 0 1 44.1 khz 400 ppm 1 1 0 44.056 khz 400 ppm 1 1 1 32 khz 400 ppm
cs8411 cs8412 12 ds61f1 high. b0 and b1 select one of three buffer modes listed in table 2 and illustrated in figure 5. in all modes four bytes of user data are stored. in mode 0, one entire block of channel status is stored. in mode 1 eight bytes of channel status and sixteen bytes of auxiliary data are stored. in mode 2, eight bytes of channel status from each sub-frame are stored. the buffer modes are discussed in more detail in the buffer memory section. the next bit, cs2/cs1, se- lects the particular sub-frame of channel status to buffer in modes 0 and 1, and has no effect in mode 2. when cs2/cs1 is low, sub-frame 1 is buffered, and when cs2/cs1 is high, sub-frame 2 is buff- ered. ier/sr selects which set of registers, either ienable or status, occupy addresses 0 and 1. when ier/sr is low, the status registers occupy the first two addresses, and when ier/sr is high, the ien- able registers occupy those addresses. fcen en- ables the internal frequency counter. a 6.144 mhz clock must be connected to the fck pin as a refer- ence. the value of the freq bits in sr2 are not valid until two thirds of a block of data is received. since fck and a4, the most significant address bit, occupy the same pin, a4 is internally set to zero when fcen is high. since a4 is forced to zero, the upper half of the buffer is not accessible while us- ing the frequency compare feature. fpll deter- mines how fsync is derived. when fpll is low, fsync is derived from the incoming data, and when fpll is high, it is derived from the internal phase-locked loop. control register 2 configures the serial port which consists of three pins: sck, sdata, and fsync. sdata is always an output, but sck and fsync can be configured as inputs or outputs. fsync and sdata can have a variety of relationships to each other, and the polarity of sck can be controlled. the large variety of audio data formats provides an easy interface to most dsps and other audio pro- cessors. sdata is normally just audio data, but special modes are provided that output received bi- phase data, or received nrz data with zeros substi- tuted for preamble. another special mode allows an asynchronous sck input to read audio data from the serial port without slipping samples. in this mode fsync and sdata are outputs synchro- nized to the sck input. since sck is asynchronous to the received clock, the number of sck cycles between fsync edges will vary. roer, when set, causes the last audio sample to be reread if the error pin, erf, is active. when out of lock, the cs8411 will output zeros if roer is set and output random data if roer is not set. the conditions that activate erf are those reported in sr2 and enabled in ier2. figure 10 illustrates the modes selectable by sdf2-sdf0 and fsf1-fsf0. mstr, which in most applications will be set to one, determines whether fsync and sck are out- puts (mstr = 1) or inputs (mstr = 0). when fsync and sck are inputs (slave mode) the audio figure 8. control register 1 cr1: fpll: 0 - fsync from rxp/rxn, 1 - fsync from pll fcen: enables freq. comparator (fck must be 6.144 mhz). ier/sr : [x:00,01] 0 - status, 1 - interrupt enable registers. cs2/cs1 : ch. status to buffer; 0 - sub-frame 1, 1 - sub-frame 2. b1: with b0, selects the buffer memory mode. b0: with b1, selects the buffer memory mode. rst : resets internal counters. set to 1 for normal operation. x:027 6 5 4 3210 cr1. fpll fcen ier/sr cs2/cs1 b1 b0 rst b1 b0 mode buffer memory contents 0 0 0 channel status 0 1 1 auxiliary data 1 0 2 independent channel status 1 1 3 reserved table 2. buffer memory modes figure 9. control register 2 cr2: roer: repeat previous value on error (audio data) sdf2: with sdf0 & sdf1, select serial data format. sdf1: with sdf0 & sdf2, select serial data format. sdf0: with sdf1 & sdf2, select serial data format. fsf1: with fsf0, select fsync format. fsf0: with fsf1, select fsync format. mstr: when set, sck and fsync are output sced: when set, falling edge of sck outputs data. when clear, rising edge of sck outputs data. x:0376543210 cr2. roer sdf2 sdf1 sdf0 fsf1 fsf0 mstr sced
cs8411 cs8412 ds61f1 13 data can be read twice or missed if the device con- trolling fsync and sck is on a different time- base than the cs8411. if the audio data is read twice or missed, the slip bit in sr1 is set. sced selects the sck edge to output data on. sced high causes data to be output on the falling edge, and sced low causes data to be output on the rising edge. audio serial port the audio serial port outputs the audio data portion from the received data and consists of three pins: sck, sdata, and fsync. sck clocks the data out on the sdata line. the edge that sck uses to output data is programmable from cr2. fsync delineates the audio samples and may indicate the particular channel, left or right. figure 10 illus- trates the multitude of formats that sdata and fsync can take. normal modes sck and fsync can be inputs (mstr = 0) or out- puts (mstr = 1), and are usually programmed as outputs. as outputs, sck contains 32 periods for 24 bits, incl. aux 16 clocks 16 clocks 16 clocks 16 clocks 32 clocks 32 clocks 32 clocks 32 clocks 00 01 10 11 1 1 1 1 fsync output fsync output fsync output fsync output fsf 00 01 10 11 mstr 0 0 0 0 fsync input fsync input fsync input fsync input 10 (bit) 000 msb first - 32 001 011 101 111 msb last lsb last - 16 lsb last - 18 lsb last - 20 210 (bit) name sdf 20 bits lsb msb lsb msb lsb lsb lsb msb lsb msb lsb lsb msb lsb msb msb lsb msb lsb msb 16 bits 18 bits 20 bits 18 bits 16 bits msb lsb msb lsb msb left sample right sample 32 bits 32 bits special modes: * error flags are not accurate in these modes msb lsb msb lsb msb 16 bits 16 bits msb msb msb lsb lsb msb msb msb lsb lsb bi-phase mark data bi-phase mark data 32 bits 32 bits lsb vucp msb aux lsb aux vucp msb aux 210 mstr name sdf 110 0 msb first - 24 010 0 msb first - 16 010* 1 nrz data 100* 1 bi-phase data 100 async sck 0 24 bits, incl. aux 24 bits, incl. aux 24 bits, incl. aux 24 bits, incl. aux 24 bits, incl. aux 24 bits, incl. aux 24 bits, incl. aux figure 10. cs8411 serial port sdata and fsync timing
cs8411 cs8412 14 ds61f1 each sample and fsync has four formats. the first two output formats of fsync (shown in fig- ure 10) delineate each word and the identification of the particular channel must be kept track of ex- ternally. this may be done using the rising edge of flag2 to indicate the next data word is left chan- nel data. the last two output formats of fsync also delineate each channel with the polarity of fsync indicating the particular channel. the last format has fsync change one sck cycle before the frame containing the data and may be used to generate an i 2 s compatible interface. when sck is programmed as an input, 32 sck cy- cles per sample must be provided. (there are two formats in the special modes section where sck can have 16 or 24 clocks per sample.) the four modes where fsync is an input are similar to the fsync output modes. the first two require a tran- sition of fsync to start the sample frame, whereas the last two are identical to the corresponding fsync output modes. if the circuit generating sck and fsync is not locked to the master clock of the cs8411, the serial port will eventually be re- read or a sample will be missed. when this occurs, the slip bit in sr1 will be set. sdata can take on five formats in the normal se- rial port modes. the first format (see figure 10), msb first, has the msb aligned with the start of a sample frame. twenty-four audio bits are output including the auxiliary bits. this mode is compati- ble with many dsps. if the auxiliary bits are used for something other than audio data, they must be masked off. the second format, msb last, outputs data lsb first with the msb aligned to the end of the sample frame. this format is conducive to seri- al arithmetic. both of the above formats output all audio bits from the received data. the last three for- mats are lsb last formats that output the most sig- nificant 16, 18, and 20 bits respectively, with the lsb aligned to the end of the sample frame. these formats are used by many interpolation filters. special modes five special modes are included for unique applica- tions. in these modes, the master bit, mstr, must be defined as shown in figure 10. in the first mode, asynchronous sck, fsync (which is an output in this mode) is aligned to the incoming sck. this mode is useful when the sck is locked to an exter- nal event and cannot be derived from mck. since sck is asynchronous, the number of sck cycles per sample frame will vary. the data output will be msb first, 24 bits, and aligned to the beginning of a sample frame. the second and third special modes are unique in that they contain 24 and 16 sck cycles respectively per sample frame, where- as all normal modes contain 32 sck cycles. in these two modes, the data is msb first and fills the entire frame. the fourth special mode outputs nrz data including the v, u, c, and p bits and the pre- amble replaced with zeros. sck is an output with 32 sck cycles per sample frame. the fifth mode outputs the biphase data recovered from the trans- mission line with 64 sck cycles output per sample frame, with data changing on the rising edge. normally, data recovered by the cs8411 is delayed by two frames in propagating through the part, but in the fourth and fifth special modes, the data is de- layed only a few bit periods before being output. however, error codes, and the c, u and v bits fol- low their normal pathways with a two frame delay (so that the error code would be output with the of- fending data in the other modes). as a result, in special modes four and five, the error codes are nearly two frames behind the data output on sda- ta. buffer memory in all buffer modes, the status, mask, and control registers are located at addresses 0-3, and the user data is buffered at locations 4 through 7. the paral- lel port can access any location in the user data buffer at any time; however, care should be taken not to read a location when that location is being
cs8411 cs8412 ds61f1 15 updated internally. this internal writing is done through a second port of the buffer and is done in a cyclic manner. as data is received, the bits are as- sembled in an internal 8-bit shift register which, when full, is loaded into the buffer memory. the first bit received is stored in d0 and, after d7 is re- ceived, the byte is written into the proper buffer memory location. the user data is received one bit per sub-frame. at the channel status block boundary, the internal pointer for writing user data is initialized to 04h (hex). after receiving eight user bits, the byte is written to the address indicated by the user pointer which is then incremented to point to the next ad- dress. after receiving all four bytes of user data, 32 audio samples, the user pointer is set to 04h again and the cycle repeats. flag0, in sr1 can be used to monitor the user data buffer. when the last byte of the user buffer, location 07h, is written, flag0 is set low and when the second byte, location 05h, is written, flag0 is set high. if the corresponding bit in the interrupt enable register (ier1, bit 0) is set, a transition of flag0 will generate a low pulse on the interrupt pin. the level of flag0 indicates which two bytes the part will write next, thereby in- dicating which two bytes are free to be read. flag1 is buffer mode dependent and is discussed in the individual buffer mode sections. a transition of flag1 will generate an interrupt if the appro- priate interrupt enable bit is set. flag2 is set high after channel status byte 23, the last byte of the block, is written and set low after channel status byte 3 is written to the buffer mem- ory. flag2 is unique in that only the rising edge can cause an interrupt if the appropriate interrupt enable bit in ier1 is set. figure 11 illustrates the flag timing for an entire channel status block which includes 24 bytes of channel status data per channel and 384 audio sam- ples. the lower portion of figure 11 expands the first byte of channel status showing eight pairs of data, with a pair defined as a frame. this is further expanded showing the first sub-frame (a0) to con- tain 32 bits defined as per the digital audio stan- dards. when receiving stereo, channel a is left and channel b is right. for all three buffer modes, the three most signifi- cant bits in sr1, shown in figure 6, can be used to monitor the channel status data. in buffer mode 2, bits 7 and 6 change definition and are described in that section. channel status data, as described in the standards, is independent for each channel. each channel contains its own block of channel status data, and in most systems, both channels will con- tain the same channel status data. buffer modes 0 and 1 operate on one block of channel status with the particular block selected by the cs2/cs1 bit in cr1. csdif, bit 7 in sr1, indicates when the channel status data for each channel is not the same even though only one channel is being buffered. crce, bit 6 in sr1, indicates a crc error oc- curred in the buffered channel. cchg, bit 5 in sr1, is set when any bit in the buffered channel sta- tus bytes 0 to 3, change from one block to the next. buffer mode 0 the user data buffer previously described is identi- cal for all modes. buffer mode 0 allocates the rest of the buffer to channel status data. this mode stores an entire block of channel status in 24 mem- ory locations from address 08h to 1fh. channel status (cs) data is different from user data in that channel status data is independent for each channel. a block of cs data is defined as one bit per frame, not one bit per sub-frame; therefore, there are two blocks of channel status. the cs2/cs1 bit in cr1 selects which channel is stored in the buffer. in a typical system sending stereo data, the channel sta- tus data for each channel would be identical. flag1 in status register 1, sr1, can be used to monitor the channel status buffer. in mode 0, flag1 is set low after channel status byte 23 (the last byte) is written, and is set high when channel
cs8411 cs8412 16 ds61f1 status byte 15, location 17h is written. if the corre- sponding interrupt enable bit in ier1 is set, a tran- sition of flag1 will generate a pulse on the interrupt pin. figure 12 illustrates the memory write sequence for buffer mode 0 along with flag timing. the arrows on the flag timing indicate when an interrupt will occur if the appropriate in- terrupt enable bit is set. flag0 can cause an inter- rupt on either edge, which is only shown in the expanded portion of the figure for clarity. buffer mode 1 in buffer mode 1, eight bytes are allocated for chan- nel status data and sixteen bytes for auxiliary data as shown in figure 5. the user data buffer is the same for all modes. the channel status buffer, loca- tions 08h to 0fh, is divided into two sections. the first four locations always contain the first four bytes of channel status, identical to mode 0, and are written once per channel status block. the second four locations, addresses 0ch to 0fh, provide a cyclic buffer for the last 20 bytes of channel status data. the channel status buffer is divided in this fashion because the first four bytes are the most im- flag 0 flag 1 mode 0 flag 1 modes 1 & 2 flag 2 b 0 a 0 b 1 a 1 b 2 a 2 b 7 a 7 aux data 03 4 7 lsb 8 audio data preamble 28 29 30 31 vu cp msb 27 (384 audio samples) 2301234567 8 9 101112 13 14 15 16 17 18 19 20 21 22 23 01 channel status byte (expanded) (expanded) bit frame sub-frame block validity user data channel status data parity bit figure 11. cs8411 status register flag timing
cs8411 cs8412 ds61f1 17 flag0 flag1 flag2 (384 audio samples) (expanded) block 08 0b 0c 1f 08 c.s. address 0123456789 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 c.s. byte flag0 c.s. addr. user addr. (addresses are in hex) 04 05 06 07 04 05 06 07 08 09 0a 0b 1f 07 figure 12. cs8411 buffer memory write sequence - mode 0 flag0 flag1 flag2 (384 audio samples) (expanded) block 08 0b 0c 0f 08 c.s. address 0123456789 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 c.s. byte flag0 c.s. addr. user addr. (addresses are in hex) 0f 0c 0f 0c 0f 0c 0f 0c flag1 aux. addr. 08 09 0a 0b 04 05 06 07 04 05 06 07 07 0f 10 13,14 17 18 1b,1c 1f 10 13,14 17 18 1b,1c 1f 1f figure 13. cs8411 buffer memory write sequence - mode 1
cs8411 cs8412 18 ds61f1 portant ones; whereas, the last 20 bytes are often not used (except for byte 23, crc). flag1 and flag2 can be used to monitor this buffer as shown in figure 13. flag1 is set high when cs byte 1, location 09h, is written and is tog- gled when every other byte is written. flag2 is set high after cs byte 23 is written and set low after cs byte 3, location 0bh, is written. flag2 deter- mines whether the channel status pointer is writing to the first four-byte section of the channel status buffer or the second four-byte section, while flag1 indicates which two bytes of the section are free to update. the auxiliary data buffer, locations 10h to 1fh, is written to in a cyclic manner similar to the other buffers. four auxiliary data bits are received per audio sample (sub-frame) and, since the auxiliary data is four times larger than the user data, the aux- iliary data buffer on the cs8411 is four times larger allowing flag0 to be used to monitor both. buffer mode 2 in buffer mode 2, two 8-byte buffers are available to independently buffer each channel of channel status data. both buffers are identical to the channel status buffer in mode 1 and are written to simulta- neously, with locations 08h to 0fh containing cs data for channel a and locations 10h to 17h con- taining cs data for channel b. both cs buffers can be monitored using flag1 and flag2 as de- scribed in the buffer mode 1 section. the two most significant bits in sr1 change defini- tion for buffer mode 2. these two bits, when set, in- dicate crc errors for their respective channels. a crc error occurs when the internal calculated crc for channel status bytes 0 through 22 does not match channel status byte 23. cchg, bit 5 in sr1, is set when any bit in the first four channel status bytes of either channel changes from one block to the next. since channel status doesn't change very often, this bit may be monitored rather than check- ing all the bits in the first four bytes. these bits are illustrated in 6. flag0 flag1 flag2 (384 audio samples) block left c.s. ad. 012 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 c.s. byte (addresses are in hex) (expanded) flag0 left c.s. ad. user address 08 0b 0c 0f 08 0f 0c 0f 0c 0f 0c 0f 0c 10 13 14 17 10 17 14 17 14 17 14 17 14 right c.s. ad. right c.s. ad. flag1 05 06 07 04 05 06 07 04 08 09 0a 0b 10 11 12 13 figure 14. cs8411 buffer memory write sequence - mode 2
cs8411 cs8412 ds61f1 19 buffer updates and interrupt timing as mentioned previously in the buffer mode sec- tions, conflicts between externally reading the buffer ram and the cs8411 internally writing to it may be averted by using the flag levels to avoid the section currently being addressed by the part. how- ever, if the interrupt line, along with the flags, is utilized, the actual byte that was just updated can be determined. in this way, the entire buffer can be read without concern for internal updates. figure 15 shows the detailed timing for the interrupt line, flags, and the ram write line. sck is 64 times the incoming sample frequency, and is the same sck output in master mode. the fsync shown is valid for all master modes except the i 2 s compatible mode. the interrupt pulse is shown to be 4 sck pe- riods wide and goes low 5 sck periods after the ram is written. using the above information, the entire data buffer may be read starting with the next byte to be updated by the internal pointer. erf pin timing erf signals that an error occurred while receiving the audio sample that is currently being read from the serial port. erf changes with the active edge of fsync and is high during the erroneous sample. erf is affected by the error conditions reported in sr2: lock, code, parity, and v. any of these conditions may be masked off using the cor- responding bits in ier2. the erf pin will go high for each error that occurs. the erf bit in sr1 is different from the erf pin in that it only causes an interrupt the first time an error occurs until sr1 is read. more information on the erf pin and bit is contained at the end of the status and ienable reg- isters section. fsync (flag0,1) (flag2) sck left 191 right 191 left 0 int iwrite int fsf1,0 mstr sced = 1 = 1 = 1 0 figure 15. ram/buffer - write and interrupt timing
cs8411 cs8412 20 ds61f1 pin descriptions: cs8411 power supply connections vd+ - positive digital power, pin 7. positive supply for the digital section. nominally +5 volts. va+ - positive analog power, pin 22. positive supply for the analog section. nominally +5 volts. this supply should be as quiet as possible since noise on this pin will directly affect the jitter performance of the recovered clock. dgnd - digital ground, pin 8. ground for the digital section. dgnd should be connected to same ground as agnd. agnd - analog ground, pin 21. ground for the analog section. agnd should be connected to same ground as dgnd. audio output interface sck - serial clock, pin 12. serial clock for sdata pin which can be configured (via control register 2) as an input or output, and can sample data on the rising or falling edge. as an input, sck must contain 32 clocks for every audio sample in all normal audio serial port formats. 1 2 3 4 5 6 7 821 22 23 24 25 26 27 28 data bus bit 1 data bus bit 0 serial output data error flag chip select read/write select analog power analog ground dgnd vd+ d7 d6 d5 d4 d3 d2 9 10 11 12 17 18 19 20 filter master clock address bus bit 0 address bus bit 1 sck fsync rxn rxp 13 14 15 16 address bus bit 2 address bus bit 3 int a4/fck d1 d0 sdata erf cs rd/wr va+ agnd filt mck a0 a1 a2 a3 digital ground digital power data bus bit 7 data bus bit 6 data bus bit 5 data bus bit 4 data bus bit 3 data bus bit 2 serial data clock frame sync receive negative receive positive interrupt add bus bit 4 / fclock cs8411
cs8411 cs8412 ds61f1 21 fsync - frame sync, pin 11. delineates the serial data and may indicate the particular channel, left or right. also, fsync may be configured as an input or output. the format is based on bits in control register 2. sdata - serial data, pin 26. audio data serial output pin. erf - error flag, pin 25. signals that an error has occurred while receiving the audio sample currently being read from the serial port. the errors that cause erf to go high are enumerated in status register 2 and enabled by setting the corresponding bit in ienable register 2. a4/fck - address bus bit 4/frequency clock, pin 13. this pin has a dual function and is controlled by the fcen bit in control register 1. a4 is the address bus pin as defined below. when used as fck, an internal frequency comparator compares a 6.144 mhz clock input on this pin to the received clock frequency and stores the value in status register 1 as three freq bits. these bits indicate the incoming frequency as well as the tolerance. when defined as fck, a4 is internally set to 0. parallel interface cs - chip select, pin 24. this input is active low and allows access to the 32 bytes of internal memory. the address bus and rd/wr must be valid while cs is low. rd/wr - read/write, pin 23. if rd/wr is low when cs goes active (low), the data on the data bus is written to internal memory. if rd/wr is high when cs goes active, the data in the internal memory is placed on the data bus. a4-a0 - address bus, pins 13, 15-18. parallel port address bus that selects the internal memory location to be read from or written to. note that a4 is the dual function pin a4/fck as described above. d0-d7 - data bus, pins 27-28, 1-6. parallel port data bus used to check status, read or write control words, or read internal buffer memory. int - interrupt, pin 14. open drain output that can signal the state of the internal buffer memory as well as error information. a 5k w resistor to vd+ is typically used to support logic gates. all bits affecting int are maskable to allow total control over the interrupt mechanism.
cs8411 cs8412 22 ds61f1 receiver interface rxp, rxn - differential line receivers, pins 9, 10. rs422 compatible line receivers. described in detail in appendix a. phase locked loop mck - master clock, pin 19. low jitter clock output of 256 times the received sample frequency. filt - filter, pin 20. an external 1k w resistor and 0.047 f capacitor are required from the filt pin to analog ground.
cs8411 cs8412 ds61f1 23 cs8412 description the cs8412 does not need a microprocessor to handle the non-audio data (although a micro may be used with the c and u serial ports). instead, ded- icated pins are available for the most important channel status bits. the cs8412 is a monolithic cmos circuit that receives and decodes digital au- dio data which was encoded according to the digital audio interface standards. it contains an rs422 line receiver and clock and data recovery utilizing an on-chip phase-locked loop. the audio data is out- put through a configurable serial port that supports 14 formats. the channel status and user data have their own serial pins and the validity flag is or'ed with the erf flag to provide a single pin, verf, indicating that the audio output may not be valid. this pin may be used by interpolation filters that provide error correction. a block diagram of the cs8412 is illustrated in figure 16. the line receiver and jitter performance are de- scribed in the sections directly preceding the cs8411 sections in the beginning of this data sheet. audio serial port the audio serial port is used primarily to output au- dio data and consists of three pins: sck, fsync, and sdata. these pins are configured via four control pins: m0, m1, m2, and m3. m3 selects be- tween eight normal serial formats (m3 = 0), and six special formats (m3 = 1). normal modes (m3 = 0) when m3 is low, the normal serial port formats shown in figure 17 are selected using m2, m1, and m0. these formats are also listed in table 3, va+ filt agnd mck sdata 11 sck fsync 12 26 de-multiplexer audio serial port crc check rxp rxn vd+ dgnd r e g i s t e r s parity check frequency comparator error encoder channel status latch ca/ e1 c0/ e0 ce/ f2 cd/ f1 cc/ f0 cb/ e2 multiplexer bi-phase decoder and frame sync 3 3 6 timing m0 m1 m2 m3 c u verf cbl erf sel cs12/ fck 22 20 21 19 9 10 7 8 13 16 6543227 25 15 28 14 1 17 18 24 23 clock & data recovery 6 figure 16. cs8412 block diagram
cs8411 cs8412 24 ds61f1 wherein the first word past the format number (out-in) indicates whether fsync and sck are outputs from the cs8412 or are inputs. the next word (l/r-wsync) indicates whether fsync in- dicates the particular channel or just delineates each word. if an error occurs (erf = 1) while using one of these formats, the previous valid audio data for that channel will be output. as long as erf is high, that same data word will be output. if the cs8412 is not locked, it will output all zeroes. in some modes fsync and sck are outputs and in others they are inputs. in table 3, lsbj is short for lsb justified where the lsb is justified to the end of the audio frame and the msb varies with word length. as outputs the cs8412 generates 32 sck periods per audio sample (64 per stereo sample) and, as inputs, 32 sck periods must be provided per audio sample. when fsync and sck are in- puts, one stereo sample is double buffered. for those modes which output 24 bits of audio data, the auxiliary bits will be included. if the auxiliary bits are not used for audio data, they must be masked off. table 3. normal audio port modes (m3=0) special modes (m3 = 1) when m3 is high, the special audio modes de- scribed in table 4 are selected via m2, m1, and m0. in formats 8, 9, and 10, sck, fsync, and sdata are the same as in formats 0, 1, and 2 re- spectively; however, the recovered data is output as is even if erf is high, indicating an error. (in modes 0-2 the previous valid sample is output.) similarly, when out of lock, the cs8412 will still output all the recovered data, which should be ze- ros if there is no input to the rxp, rxn pins. for- mat 11 is similar to format 0 except that sck is an input and fsync is an output. in this mode fsync and sdata are synchronized to the in- coming sck, and the number of sck periods be- tween fsync edges will vary since sck is not synchronous to received data stream. this mode may be useful when writing data to storage. table 4. special audio port modes (m3=1) format 12 is similar to format 7 except that sda- ta is the entire data word received from the trans- mission line including the c, u, v, and p bits, with zeros in place of the preamble. in format 13 sda- ta contains the entire biphase encoded data from the transmission line including the preamble, and sck is twice the normal frequency. the normal two frame delay of data from input to output is re- duced to only a few bit periods in formats 12 and 13. however, the c, u, v bits and error codes fol- low their normal pathways and therefore follow the output data by nearly two frames. figure 18 illus- trates formats 12 and 13. format 14 is reserved and not presently used, and format 15 causes the cs8412 to go into a reset state. while in reset all outputs will be inactive except mck. the cs8412 comes out of reset at the first block boundary after leaving the reset state. it is recommended to reset the cs8412 after power-up and any time the user performs a system-wide reset. a suggested reset circuit is shown in appendix b. m2 m1 m0 format 0 0 0 0 - out, l/r, 16-24 bits 0 0 1 1 - in, l/r, 16-24 bits 010 2 - out, l/r, i 2 s compatible 011 3 - in, l/r, i 2 s compatible 1 0 0 4 - out, wsync, 16-24 bits 1 0 1 5 - out, l/r, 16 bits lsbj 1 1 0 6 - out, l/r, 18 bits lsbj 1 1 1 7 - out, l/r, msb last m2 m1 m0 format 0 0 0 8 - format 0 - no repeat on error 0 0 1 9 - format 1 - no repeat on error 0 1 0 10 - format 2 - no repeat on error 0 1 1 11 - format 0 - async. sck input 1 0 0 12 - received nrz data 1 0 1 13 - received bi-phase data 1 1 0 14 - reserved 1 1 1 15 - cs8412 reset
cs8411 cs8412 ds61f1 25 fmt no. m2 m1 m0 fsync (out) sck (out) sdata (out) lsb msb lsb msb left right msb 7 fsync (out) sck (out) sdata (out) msb lsb msb lsb left right lsb 18 bits 18 bits 6 fsync (out) sck (out) sdata (out) msb lsb msb lsb left right lsb 16 bits 16 bits 5 3 fsync (in) sck (in) sdata (out) msb lsb msb lsb left right msb fsync (out) sck (out) sdata (out) msb lsb msb lsb left right msb 2 fsync (out) sck (out) sdata (out) msb lsb msb lsb msb left right 4 fsync (in) sck (in) sdata (out) msb lsb msb lsb msb left right 1 fsync (out) sck (out) sdata (out) msb lsb msb lsb msb left right 0 1 1 1 0 1 1 1 1 0 1 0 1 0 01 0 1 0 1 00 0 00 figure 17. cs8412 audio serial port formats
cs8411 cs8412 26 ds61f1 c, u, verf, erf, and cbl serial outputs the c and u bits and cbl are output one sck pe- riod prior to the active edge of fsync in all serial port formats except 2, 3 and 9 (i 2 s modes). the ac- tive edge of fsync may be used to latch c, u, and cbl externally. in formats 2, 3 and 9, the c and u bits and cbl are updated with the active edge of fsync. the validity + error flag (verf) and the error flag (erf) are always updated at the active edge of fsync. this timing is illustrated in figure 19. the c output contains the channel status bits with cbl rising indicating the start of a new channel status block. cbl is high for the first four bytes of channel status (32 frames or 64 samples) and low for the last 20 bytes of channel status (160 frames or 320 samples). the u output contains the user channel data. the vbit is or'ed with the erf flag and output on the verf pin. this indicates that the audio sample may be in error and can be used by in- terpolation filters to interpolate through the error. erf being high indicates a serious error occurred on the transmission line. there are three errors that cause erf to go high: a parity error or biphase coding violation during that sample, or an out of lock pll receiver. timing for the above pins is il- lustrated in figure 19. multifunction pins there are seven multifunction pins which contain either error and received frequency information, or channel status information, selectable by sel. no. fsync (out) sdata (out) 13* fsync (out) sck (out) sdata (out) 12* msb vucp lsb aux msb vucp lsb aux left right left right msb vucp lsb aux msb vucp lsb aux sck (out) * error flags are not accurate in these modes. figure 18. special audio port formats 12 and 13 cbl sdata fsync left 0 left 1 right 0 left 0 left 32 right 191 right 31 right 191 ca-ce c0, erf, verf c, u figure 19. cbl timing
cs8411 cs8412 ds61f1 27 error and frequency reporting when sel is low, error and received frequency in- formation are selected. the error information is en- coded on pins e2, e1, and e0, and is decoded as shown in table 5. when an error occurs, the corre- sponding error code is latched. clearing is then ac- complished by bringing sel high for more than eight mck cycles. the errors have a priority asso- ciated with their error code, with validity having the lowest priority and no lock having the highest priority. since only one code can be displayed, the error with the highest priority that occurred since the last clearing will be selected. table 5. error decoding the validity flag indicates that the validity bit for a previous sample was high since the last clearing of the error codes. the slipped sample error can only occur when fsync and sck of the audio serial port are inputs. in this case, if fsync is asynchro- nous to the received data rate, periodically a stereo sample will be dropped or reread depending on whether the read rate is slower or faster than the re- ceived data rate. when this occurs, the slipped sam- ple error code will appear on the 'e' pins. the crc error is updated at the beginning of a channel status block, and is only valid when the professional for- mat of channel status data is received. this error is indicated when the cs8412 calculated crc value does not match the crc byte of the channel status block or when a block boundary changes (as in re- moving samples while editing). the parity error oc- curs when the incoming sub-frame does not have even parity as specified by the standards. the bi- phase coding error indicates a biphase coding vio- lation occurred. the no lock error indicates that the pll is not locked onto the incoming data stream. lock is achieved after receiving three frame pre- ambles then one block preamble, and is lost after not receiving four consecutive frame preambles. the received frequency information is encoded on pins f2, f1, and f0, and is decoded as shown in ta- ble 6. the on-chip frequency comparator compares the received clock frequency to an externally sup- plied 6.144 mhz clock which is input on the fck pin. the 'f' pins are updated three times during a channel status block including prior to the rising edge of cbl. cbl may be used to externally latch the 'f' pins. the clock on fck must be valid for two thirds of a block for the 'f' pins to be accurate. table 6. sample frequency decoding channel status reporting when sel is high, channel status is displayed on c0, and ca-ce for the channel selected by cs12. if cs12 is low, channel status for sub-frame1 is dis- played, and if cs12 is high, channel status for sub- frame 2 is displayed. the contents of ca-ce depend upon the c0 professional/consumer bit. the infor- mation reported is shown in table 7. table 7. channel status pins e2 e1 e0 error 000 no error 0 0 1 validity bit high 0 1 0 reserved 0 1 1 slipped sample 1 0 0 crc error (pro only) 101 parity error 1 1 0 bi-phase coding error 1 1 1 no lock f2 f1 f0 sample frequency 0 0 0 out of range 001 48 khz 4% 0 1 0 44.1 khz 4% 0 1 1 32 khz 4% 1 0 0 48 khz 400 ppm 1 0 1 44.1 khz 400 ppm 1 1 0 44.056 khz 400 ppm 1 1 1 32 khz 400 ppm pin professional consumer c0 0 (low) 1 (high) ca c1 c1 cb em0 c2 cc em1 c3 cd c9 orig ce crce igcat
cs8411 cs8412 28 ds61f1 professional channel status (c0 = 0) when c0 is low, the received channel status block is encoded according to the professional/broadcast format. the ca through ce pins are defined for some of the more important professional bits. as listed in table 7, ca is the inverse of channel status bit1. therefore, if the incoming channel status bit 1 is 1, ca, defined as c1, will be 0. c1 indicates whether audio (c1=1) or non-audio (c1=0) data is being received. cb and cc, defined as em0 and em1 respectively, indicate emphasis and are en- coded versions of channel status bits 2, 3, and 4. the decoding is listed in table 8. cd, defined as c9, is the inverse of channel status bit 9, which gives some indication of channel mode. (bit 9 is also defined as bit 1 of byte 1.) when ce, defined as crce, is low, the cs8412 calculated crc value does not match the received crc value. this signal may be used to qualify ca through cd. if ca through ce are being displayed, ce going low can indicate not to update the display. table 8. emphasis encoding consumer channel status (c0 = 1) when c0 is high, the received channel status block is encoded according to the consumer format. in this case ca through ce are defined differently as shown in table 7. ca is the inverse of channel sta- tus bit 1, c1, indicating audio (c1 = 1) or non-audio (c1 = 0). cb is defined as the inverse of channel status bit 2, c2, which indicates copy inhibit/copy- right information. cc, defined as c3, is the empha- sis bit of channel status, with c3 low indicating the data has had pre-emphasis added. the audio standards, in consumer mode, describe bit 15, l, as the generation status which indicates whether the audio data is an original work or a copy (1st generation or higher). the definition of the lbit is reversed for three category codes: two broadcast codes, and laser-optical (cd's). there- fore, to interpret the l bit properly, the category code must be decoded. the cs8412 does this de- coding internally and provides the orig signal that, when low, indicates that the audio data is orig- inal over all category codes. scms the consumer audio standards also mention a serial copy management system, scms, for dealing with copy protection of copyrighted works. scms is de- signed to allow unlimited duplication of the origi- nal work, but no duplication of any copies of the original. this system utilizes the channel status bit 2, copy, and channel status bit 15, l or generation status, along with the category codes. if the copy bit is 0, copyright protection is asserted over the material. then, the l bit is used to determine if the material is an original or a duplication. (as men- tioned in the previous paragraph, the definition of the l bit can be reversed based on the category codes.) there are two category codes that get spe- cial attention: general and a/d converters without c or l bit information. for these two categories the scms standard requires that equipment interfacing to these categories set the c bit to 0 (copyright pro- tection asserted) and the l bit to1 (original). to support this feature, ce, in the consumer mode, is defined as igcat (ignorant category) which is low for the "general" (0000000) and "a/d converter without copyright information" (01100xx) catego- ries. em1 em0 c2 c3 c4 emphasis 0 0 1 1 1 ccitt j.17 emphasis 0 1 1 1 0 50/15 m s emphasis 1 0 1 0 0 no emphasis 1 1 0 0 0 not indicated
cs8411 cs8412 ds61f1 29 pin descriptions: cs8412 power supply connections vd+ - positive digital power, pin 7. positive supply for the digital section. nominally +5 volts. va+ - positive analog power, pin 22. positive supply for the analog section. nominally +5 volts. dgnd - digital ground, pin 8. ground for the digital section. dgnd should be connected to same ground as agnd. agnd - analog ground, pin 21. ground for the analog section. agnd should be connected to same ground as dgnd. audio output interface sck - serial clock, pin 12. serial clock for sdata pin which can be configured (via the m0, m1, m2, and m3 pins) as an input or output, and can sample data on the rising or falling edge. as an output, sck will generate 32 clocks for every audio sample. as an input, 32 sck periods per audio sample must be provided in all normal modes. 1 2 3 4 5 6 7 821 22 23 24 25 26 27 28 validity + error flag cs e / freq report 2 serial output data error flag serial port mode select 1 serial port mode select 2 analog power analog ground dgnd vd+ c0/e0 ca/e1 cb/e2 cc/f0 cd/f1 c 9 10 11 12 17 18 19 20 filter master clock serial port mode select 2 serial port mode select 3 sck fsync rxn rxp 13 14 15 16 freq/cs select cs block start u cs12/fck verf ce/f2 sdata erf m1 m0 va+ agnd filt mck m2 m3 sel cbl digital ground digital power cs 0 / error condition 0 cs a / error condition 1 cs b / error condition 2 cs c / freq report 0 cs d / freq report 1 channel status output serial data clock frame sync receive negative receive positive user data output channel select / fclock cs8412
cs8411 cs8412 30 ds61f1 fsync - frame sync, pin 11. delineates the serial data and may indicate the particular channel, left or right, and may be an input or output. the format is based on m0, m1, m2, and m3 pins. sdata - serial data, pin 26. audio data serial output pin. m0, m1, m2, m3 - serial port mode select, pins 23, 24, 18, 17. selects the format of fsync and the sample edge of sck with respect to sdata. m3 selects between eight normal modes (m3 = 0), and six special modes (m3 = 1). control pins verf - validity + error flag, pin 28. a logical or'ing of the validity bit from the received data and the error flag. may be used by interpolation filters to interpolate through errors. u - user bit, pin 14. received user bit serial output port. fsync may be used to latch this bit externally. (except in i 2 s modes when this pin is updated at the active edge of fsync.) c - channel status output, pin 1. received channel status bit serial output port. fsync may be used to latch this bit externally. (except in i 2 s modes when this pin is updated at the active edge of fsync.) cbl - channel status block start, pin 15. the channel status block output is high for the first four bytes of channel status and low for the last 20 bytes. sel - select, pin 16. control pin that selects either channel status information (sel = 1) or error and frequency information (sel = 0) to be displayed on six of the following pins. c0 , ca, cb, cc, cd, ce - channel status output bits, pins 2-6, 27. these pins are dual function with the 'c' bits selected when sel is high. channel status information is displayed for the channel selected by cs12. c0 , which is channel status bit 0, defines professional (c0 = 0) or consumer (c0 = 1) mode and further controls the definition of the ca-ce pins. these pins are updated with the rising edge of cbl. cs12 - channel select, pin 13. this pin is also dual function and is selected by bringing sel high. cs12 selects sub-frame1 (when low) or sub-frame2 (when high) to be displayed by channel status pins c0 and ca through ce.
cs8411 cs8412 ds61f1 31 fck - frequency clock, pin 13. frequency clock input that is enabled by bringing sel low. fck is compared to the received clock frequency with the value displayed on f2 through f0. nominal input value is 6.144 mhz. e0, e1, e2 - error condition, pins 4-6. encoded error information that is enabled by bringing sel low. the error codes are prioritized and latched so that the error code displayed is the highest level of error since the last clearing of the error pins. clearing is accomplished by bringing sel high for more than 8 mck cycles. f0, f1, f2 - frequency reporting bits, pins 2-3, 27. encoded sample frequency information that is enabled by bringing sel low. a proper clock on fck must be input for at least two thirds of a channel status block for these pins to be valid. they are updated three times per block, starting at the block boundary. erf - error flag, pin 25. signals that an error has occurred while receiving the audio sample currently being read from the serial port. three errors cause erf to go high: a parity or biphase coding violation during the current sample, or an out of lock pll receiver. receiver interface rxp, rxn - differential line receivers, pins 9, 10. rs422 compatible line receivers. phase locked loop mck - master clock, pin 19. low jitter clock output of 256 times the received sample frequency. filt - filter, pin 20. an external 1 k w resistor and 0.047 f capacitor is required from filt pin to analog ground.
cs8411 cs8412 32 ds61f1 ordering guide * although the -cp and -cs suffixed parts are guaranteed to operate over 0 to 70 c, they are tested at 25 c only. if testing over temperature is desired, the -ip and -is suffixed parts are tested over their speci- fied temperature range. model temperature range package cs8411 - cp 0 to 70 c* 28-pin plastic .6 dip cs8411 - ip -40 to 85 c 28-pin plastic .6 dip cs8411 - cs 0 to 70 c* 28-pin plastic soic cs8411 - is -40 to 85 c 28-pin plastic soic cs8412 - cp 0 to 70 c* 28-pin plastic .6 dip cs8412 - ip -40 to 85 c 28-pin plastic .6 dip cs8412 - cs 0 to 70 c* 28-pin plastic soic cs8412 - is -40 to 85 c 28-pin plastic soic
cs8411 cs8412 ds61f1 33 package dimensions inches millimeters dim min max min max a 0.000 0.250 0.00 6.35 a1 0.015 0.025 0.38 0.64 a2 0.125 0.195 3.18 4.95 b 0.014 0.022 0.36 0.56 b1 0.030 0.070 0.76 1.78 c 0.008 0.014 0.20 0.36 d 1.380 1.565 35.05 39.75 e 0.600 0.625 15.24 15.88 e1 0.485 0.580 12.32 14.73 e 0.090 0.110 2.29 2.79 ea 0.580 0.620 14.73 15.75 eb 0.600 0.700 15.24 17.78 ec 0.000 0.060 0.00 1.52 l 0.115 0.200 2.92 5.08 0 15 0 15 28 pin plastic (pdip) (600 mil) package drawing e1 d seating plane b1 e b a l a1 top view bottom view side view 1 ea c a2 e ec eb
cs8411 cs8412 34 ds61f1 inches millimeters dim min max min max a 0.093 0.104 2.35 2.65 a1 0.004 0.012 0.10 0.30 b 0.013 0.020 0.33 0.51 c 0.009 0.013 0.23 0.32 d 0.697 0.713 17.70 18.10 e 0.291 0.299 7.40 7.60 e 0.040 0.060 1.02 1.52 h 0.394 0.419 10.00 10.65 l 0.016 0.050 0.40 1.27 0 8 0 8 28l soic (300 mil body) package drawing d h e b a1 a c l seating plane 1 e
cs8411 cs8412 ds61f1 35 appendix a: rs422 receiver information the rs422 receivers on the cs8411 and cs8412 are designed to receive both the professional and consumer interfaces, and meet all specifications listed in the digital audio standards. figure 20 illus- trates the internal schematic of the receiver portion of both chips. the receiver has a differential input. a schmitt trigger is incorporated to add hysteresis which prevents noisy signals from corrupting the phase detector. professional interface the digital audio specifications for professional use call for a balanced receiver, using xlr connec- tors, with 110 w 20% impedance. (the xlr con- nector on the receiver should have female pins with a male shell.) since the receiver has a very high im- pedance, a 110 w resistor should be placed across the receiver terminals to match the line impedance, as shown in figure 21, and, since the part has inter- nal biasing, no external biasing network is needed. if some isolation is desired without the use of trans- formers, a 0.01 f capacitor should be placed on the input of each pin (rxp and rxn) as shown in figure 22. however, if transformers are not used, high frequency energy could be coupled between transmitter and receiver causing degradation in an- alog performance. although transformers are not required by aes they are strongly recommended. the ebu requires transformers. figures 21 and 22 show an optional dc blocking capacitor on the transmission line. a 0.1 to 0.47 f ceramic capacitor may be used to block any dc voltage that is accidentally connect- ed to the digital audio receiver. the use of this ca- pacitor is an issue of robustness as the digital audio transmission line does not have a dc voltage com- ponent. grounding the shield of the cable is a tricky issue. in the configuration of systems, it is important to avoid ground loops and dc current flowing down the shield of the cable that could result when boxes with different ground potentials are connected. generally, it is good practice to ground the shield to the chassis of the transmitting unit, and connect the shield through a capacitor to chassis ground at the receiver. however, in some cases it is advanta- gous to have the ground of two boxes held to the same potential, and the cable shield might be de- pended upon to make that electrical connection. generally, it may be a good idea to provide the op- tion of grounding or capacitively coupling to ground with a "ground-lift" circuit. + 8 k w 4 k w 4 k w 8 k w 16 k w 16 k w rxp 9 rxn 10 - figure 20. rs422 receiver internal circuit 1 xlr twisted pair 110 w 110 w cs8411/12 rxp rxn * see text figure 21. professional input circuit 1 xlr twisted pair 110 w 110 w cs8411/12 rxp rxn 0.01 m f 0.01 m f * see text figure 22. transformerless professional circuit
cs8411 cs8412 36 ds61f1 consumer interface in the case of the consumer interface, the standards call for an unbalanced circuit having a receiver im- pedance of 75 w 5%. the connector for the con- sumer interface is an rca phono plug (fixed socket described in table iv of iec268-11). the receiver circuit for the consumer interface is shown in figure 23. ttl/cmos levels the circuit shown in figure 24 may be used when external rs422 receivers or ttl/cmos logic drive the cs8411/12 receiver section. transformers please refer to application note an134: aes and s/pdif recommended transformers for further information. rca phono rxp rxn cs8411/12 coax 75 w 75 w 0.01 m f 0.01 m f figure 23. consumer input circuit rxp rxn cs8411/12 0.01 m f 0.01 m f ttl/cmos gate figure 24. ttl/cmos interface
cs8411 cs8412 ds61f1 37 appendix b: suggested reset circuit for cs8412 the cs8412 should be reset immediately after power-up and any time the user issues a system- wide reset. this is accomplished by pulling all four mode select pins high. figure 25 shows a simple circuit to implement this. the or gates can be 74ls32 type gates. cs8412 m0 m1 m2 m3 rese t m0 m1 m2 m3 figure 25. cs8412 reset circuit


▲Up To Search▲   

 
Price & Availability of CS8411-IS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X